package com.erp.programmer.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.erp.programmer.domain.PurchaseOrder;
import com.erp.programmer.dto.PageDto;
import com.erp.programmer.dto.PurchaseOrderDto;
import com.erp.programmer.dto.ResponseDto;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author 陈鑫
 * @since 2021-05-24
 */
public interface IPurchaseOrderService extends IService<PurchaseOrder> {
    // 添加采购单
    ResponseDto<PageDto<PurchaseOrderDto>> insertPurchaseOrder(PurchaseOrderDto purchaseOrderDto);
    // 查询采购单
    ResponseDto<PageDto<PurchaseOrderDto>> getPurchaseOrder(PageDto<PurchaseOrderDto> pageDto);
    // 修改入库状态
    Boolean updateStorageState(String id, Integer storageState);
    // 修改付款状态
    ResponseDto<PageDto<PurchaseOrderDto>> updatePaymentState(String id, Integer paymentState);
}
